home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d14
/
cxlxplod.arc
/
WXCLOSE.C
< prev
next >
Wrap
Text File
|
1989-06-11
|
669b
|
30 lines
#include <stdlib.h>
#include "cxlwin.h"
#include "cxlxwin.h"
/*---------------------------------------------------------------------------*/
/* this function closes the exploding windows */
wxclose()
{
struct _wxrec_t *wxrec;
if (!_wxinfo.total) return(W_NOACTIVE);
while (_wxinfo.active->wxnum--)
{
wclose();
sound_(_wxinfo.active->wxtone,1);
_wxinfo.active->wxtone -= 100;
}
_wxinfo.total--;
wxrec=_wxinfo.active->prev;
free(_wxinfo.active);
_wxinfo.active=wxrec;
if(_wxinfo.active!=NULL) _wxinfo.active->next=NULL;
/* return normally */
return(_winfo.errno=W_NOERROR);
}